package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 监护仪绑定记录表
 * </p>
 *
 * @author zqb
 * @date 2024-08-23 15:46:33
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_bind_info")
public class BBindInfo extends Entity<Integer> {
    private static final long serialVersionUID = 1L;

    /**
     * 病人识别号
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "病人识别号")
    private String patientIdent;
    /**
     * 设备识别号
     */
    @TableField(value = "dev_id", condition = LIKE)
    @Schema(description = "设备识别号")
    private String devId;
    /**
     * 病人科室id
     */
    @TableField(value = "dept_id", condition = LIKE)
    @Schema(description = "病人科室id")
    private String deptId;
    /**
     * 床位识别号
     */
    @TableField(value = "bed_number", condition = LIKE)
    @Schema(description = "床位识别号")
    private String bedNumber;
    /**
     * 绑定时间
     */
    @TableField(value = "bind_time", condition = EQUAL)
    @Schema(description = "绑定时间")
    private Long bindTime;
    /**
     * 解绑时间
     */
    @TableField(value = "unbind_time", condition = EQUAL)
    @Schema(description = "解绑时间")
    private Long unbindTime;
    /**
     * 是否绑定
     */
    @TableField(value = "is_bind", condition = EQUAL)
    @Schema(description = "是否绑定")
    private Boolean isBind;
    /**
     * 创建时间
     */
    @TableField(value = "gmt_create", condition = EQUAL)
    @Schema(description = "创建时间")
    private LocalDateTime gmtCreate;
    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified", condition = EQUAL)
    @Schema(description = "更新时间")
    private LocalDateTime gmtModified;



}
